package com.aids_malaria.http.response;

import android.arch.persistence.room.Entity;
import android.arch.persistence.room.PrimaryKey;
import android.support.annotation.NonNull;

import com.litesuits.orm.db.annotation.NotNull;
import com.litesuits.orm.db.enums.AssignType;

import java.io.Serializable;

@Entity(tableName = "personData")
public class PersonData implements Serializable {

//    @PrimaryKey(AssignType.BY_MYSELF)
    @PrimaryKey
    @NonNull
    private String identity_code; //身份码
    private String original_id; // 原身份ID
    private int gender; // 性别
    private int pregnan_time; // 怀孕时间 0代表未怀孕 1代表怀孕小于等于3个月 2代表大于3个月
    private String birthday; //
    private String birth_adress_code; // 出生地
    private String residential_adress_code;// 现居住地
    private String father_identity_code; // 父亲身份码
    private String mother_identity_code; // 母亲身份码
    private float x;
    private float y;
    private String phone; // 手机号码
    private String telephone; // 联系电话
    private int is_die; // 是否去世 0 否 1 是
    private String investigator; // 调查员
    private String investigate_date; // 调查日期
    private String create_time;
    private String update_time;
    private String photo; // 相片
    private String name;
    private String birth_adress_detail;
    private String residential_adress_detail;
    private String village_name;

    private String residential_village_name;
    private String residential_county_name;
    private String birth_village_name;
    private String birth_county_name;

    private int busy_type;
    private boolean createOrUpdate = false;

    public String getResidential_village_name() {
        return residential_village_name;
    }

    public void setResidential_village_name(String residential_village_name) {
        this.residential_village_name = residential_village_name;
    }

    public String getResidential_county_name() {
        return residential_county_name;
    }

    public void setResidential_county_name(String residential_county_name) {
        this.residential_county_name = residential_county_name;
    }

    public String getBirth_village_name() {
        return birth_village_name;
    }

    public void setBirth_village_name(String birth_village_name) {
        this.birth_village_name = birth_village_name;
    }

    public String getBirth_county_name() {
        return birth_county_name;
    }

    public void setBirth_county_name(String birth_county_name) {
        this.birth_county_name = birth_county_name;
    }

    public boolean isCreateOrUpdate() {
        return createOrUpdate;
    }

    public void setCreateOrUpdate(boolean createOrUpdate) {
        this.createOrUpdate = createOrUpdate;
    }

    public int getBusy_type() {
        return busy_type;
    }

    public void setBusy_type(int busy_type) {
        this.busy_type = busy_type;
    }

    public String getVillage_name() {
        return village_name;
    }

    public void setVillage_name(String village_name) {
        this.village_name = village_name;
    }

    public String getIdentity_code() {
        return identity_code;
    }

    public void setIdentity_code(String identity_code) {
        this.identity_code = identity_code;
    }

    public String getOriginal_id() {
        return original_id;
    }

    public void setOriginal_id(String original_id) {
        this.original_id = original_id;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public int getPregnan_time() {
        return pregnan_time;
    }

    public void setPregnan_time(int pregnan_time) {
        this.pregnan_time = pregnan_time;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getBirth_adress_code() {
        return birth_adress_code;
    }

    public void setBirth_adress_code(String birth_adress_code) {
        this.birth_adress_code = birth_adress_code;
    }

    public String getResidential_adress_code() {
        return residential_adress_code;
    }

    public void setResidential_adress_code(String residential_adress_code) {
        this.residential_adress_code = residential_adress_code;
    }

    public String getFather_identity_code() {
        return father_identity_code;
    }

    public void setFather_identity_code(String father_identity_code) {
        this.father_identity_code = father_identity_code;
    }

    public String getMother_identity_code() {
        return mother_identity_code;
    }

    public void setMother_identity_code(String mother_identity_code) {
        this.mother_identity_code = mother_identity_code;
    }

    public float getX() {
        return x;
    }

    public void setX(float x) {
        this.x = x;
    }

    public float getY() {
        return y;
    }

    public void setY(float y) {
        this.y = y;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public int getIs_die() {
        return is_die;
    }

    public void setIs_die(int is_die) {
        this.is_die = is_die;
    }

    public String getInvestigator() {
        return investigator;
    }

    public void setInvestigator(String investigator) {
        this.investigator = investigator;
    }

    public String getInvestigate_date() {
        return investigate_date;
    }

    public void setInvestigate_date(String investigate_date) {
        this.investigate_date = investigate_date;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public String getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(String update_time) {
        this.update_time = update_time;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBirth_adress_detail() {
        return birth_adress_detail;
    }

    public void setBirth_adress_detail(String birth_adress_detail) {
        this.birth_adress_detail = birth_adress_detail;
    }

    public String getResidential_adress_detail() {
        return residential_adress_detail;
    }

    public void setResidential_adress_detail(String residential_adress_detail) {
        this.residential_adress_detail = residential_adress_detail;
    }

    @Override
    public String toString() {
        return "PersonData{" +
                "identity_code='" + identity_code + '\'' +
                ", original_id='" + original_id + '\'' +
                ", gender=" + gender +
                ", pregnan_time=" + pregnan_time +
                ", birthday='" + birthday + '\'' +
                ", birth_adress_code='" + birth_adress_code + '\'' +
                ", residential_adress_code='" + residential_adress_code + '\'' +
                ", father_identity_code='" + father_identity_code + '\'' +
                ", mother_identity_code='" + mother_identity_code + '\'' +
                ", x=" + x +
                ", y=" + y +
                ", phone='" + phone + '\'' +
                ", telephone='" + telephone + '\'' +
                ", is_die=" + is_die +
                ", investigator='" + investigator + '\'' +
                ", investigate_date='" + investigate_date + '\'' +
                ", create_time='" + create_time + '\'' +
                ", update_time='" + update_time + '\'' +
                ", photo='" + photo + '\'' +
                ", name='" + name + '\'' +
                ", birth_adress_detail='" + birth_adress_detail + '\'' +
                ", residential_adress_detail='" + residential_adress_detail + '\'' +
                ", village_name='" + village_name + '\'' +
                ", residential_village_name='" + residential_village_name + '\'' +
                ", residential_county_name='" + residential_county_name + '\'' +
                ", birth_village_name='" + birth_village_name + '\'' +
                ", birth_county_name='" + birth_county_name + '\'' +
                ", busy_type=" + busy_type +
                ", createOrUpdate=" + createOrUpdate +
                '}';
    }
}
